import apibase from "@/api/apiBase";
import axios from "axios";
import { planList } from "./search.Interface";

//获取中台险种列表
export const $insuranceGetList = () => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/travel/insurance/getList',
    data:{},
    instance,
  });
}
//获取中台险种方案列表
export const $getPlanList = (params:planList) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/travel/insurance/getPlanList',
    data:params,
    instance,
  });
}

//产品分类下拉框
export const $searchCateAllList= () => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url:"/api/search/CateAllList",
    data:"", 
    instance
  });
};

//产品方案下拉框
export const $searchPlanConfList= () => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url:"/api/search/planConfList",
    data:"", 
    instance
  });
};
//险种下拉框
export const $getInsuranceCoverageList= () => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url:"/api/search/getInsuranceCoverageList",
    data:"", 
    instance
  });
};

